	$(document).ready(function(){
		var permission = $("#allpermission").val();
		var permissionArr = permission.split(',');
		for(i=0;i<permissionArr.length;i++)
			$(":checkbox").each(function(){
				if(this.value == permissionArr[i])
					$(this).attr('checked','true');
			});
	});